<?php

/*
 * loads image, resize, output
 *
 */

 if (!isset($_GET['image']) || !isset($_GET['gallery'])) {
	trigger_error('No image or gallery selected.', E_USER_ERROR);
 }

require_once('config_standard.php');
require_once('lib/class.image.php');


$image = new Image(urldecode($_GET['gallery']), urldecode($_GET['image']), (int)$_GET['maxH'], (int)$_GET['maxW']);

$image->outputImageResource()

?>